import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './styles/index.less'
// 导入统一配置的面包屑模块
import Breadcrumb from './components/Breadcrumb.vue'
// 导入封装好的频道
import channel from './components/channel.vue'
// 导入组件库
import ElementUI from 'element-ui'
import MyCover from '@/components/cover.vue'
// 加载组件库的样式
import 'element-ui/lib/theme-chalk/index.css'
// 导入统一配置的js
import axios from '@/utils/request.js'
// 全局注册
Vue.component('MyBreadcrumb', Breadcrumb)
Vue.component('MyChannel', channel)
Vue.component('MyChannel', channel)
Vue.component('MyCover', MyCover)
Vue.prototype.$eventBus = new Vue()
// 将配置的添加到vue的原型上
Vue.prototype.$http = axios
Vue.use(ElementUI)
Vue.config.productionTip = false
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
